import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import * as icons from '@element-plus/icons-vue'
// 响应式布局类
import 'element-plus/theme-chalk/display.css'
import '@/utils/window.js'
import store from './store'
import router from './router'


const app = createApp(App)

// 全局注册 element图标
Object.keys(icons).forEach(key => {
    app.component(key, icons[key])
})
app
    .use(store)
    .use(router)
    .use(ElementPlus, { size: 'small' })
    .mount('#app')
